package ch04.home;

class Exercise4_13 {
	public static void main(String[] args) {
		String value = "12o34";
		char ch = ' ';
		boolean isNumber = true;

		for (int i = 0; i < value.length(); i++) {
			//<1
			ch = value.charAt(i);
			if (!('0' <= ch && ch <= '9')) {
				isNumber = false;
				break;
			}
			//1>
		}

		if (isNumber) {
			System.out.println(value + " is a number.");
		} else {
			System.out.println(value + " is not a number.");
		}
	}
}
/*
12o34 is not a number.
*/